package com.example.WebSocketDemo.bean;

public class RecentMessage {
    private int id;
    private String username;
    private String profilePhoto;
    private String message;
    private String time;
    private String nickname;
    private int tip;

    public int getTip() {
        return tip;
    }

    public void setTip(int tip) {
        this.tip = tip;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }


    public String getProfilePhoto() {
        return profilePhoto;
    }

    public void setProfilePhoto(String profilePhoto) {
        this.profilePhoto = profilePhoto;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public RecentMessage(int id, String username, String profilePhoto, String message, String time, String nickname, int tip) {
        this.id = id;
        this.username = username;
        this.profilePhoto = profilePhoto;
        this.message = message;
        this.time = time;
        this.nickname = nickname;
        this.tip = tip;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public RecentMessage() {
    }

    @Override
    public String toString() {
        return "RecentMessage{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", profilePhoto='" + profilePhoto + '\'' +
                ", message='" + message + '\'' +
                ", time='" + time + '\'' +
                ", tip=" + tip +
                '}';
    }
}
